﻿using System;
using System.ComponentModel;

namespace eCashDataLayer
{
    public class RegistrationModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;

        private int _iUserid;
        private string _sFirstName;
        private string _sLastname;
        private string _sUsername;
        private string _sPassword;
        private byte _btActive;
        private byte _btConfirmed;
        private string _sGUIDR;
        private string _sEmail;
        private string _sTel;
        private string _sProvince;

        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {

            // DAL objConverter = new DAL();

            // List<RegistrationModel> Model = new List<RegistrationModel>();

            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
                //objConverter.Updatedata();                
            }
        }


        public int iUserid
        {

            get
            {
                return _iUserid;
            }
            set
            {
                _iUserid = value;

                OnPropertyChanged("iUserid");

            }
        }


        public string sFirstName
        {

            get
            {
                return _sFirstName;
            }
            set
            {
                _sFirstName = value;

                OnPropertyChanged("sFirstName");

            }
        }



        public string sLastname
        {

            get
            {
                return _sLastname;
            }
            set
            {
                _sLastname = value;

                OnPropertyChanged("sLastname");

            }
        }



        public string sUsername
        {

            get
            {
                return _sUsername;
            }
            set
            {
                _sUsername = value;

                OnPropertyChanged("sUsername");

            }
        }


        public string sPassword
        {

            get
            {
                return _sPassword;
            }
            set
            {
                _sPassword = value;

                OnPropertyChanged("sPassword");

            }
        }


        public byte btActive
        {

            get
            {
                return _btActive;
            }
            set
            {
                _btActive = value;

                OnPropertyChanged("Active");

            }
        }



        public byte btConfirmed
        {

            get
            {
                return _btConfirmed;
            }
            set
            {
                _btConfirmed = value;

                OnPropertyChanged("btConfirmed");

            }
        }
         
        public string sGUIDR
        {

            get
            {
                return _sGUIDR;
            }
            set
            {
                _sGUIDR = value;

                OnPropertyChanged("sGUIDR");

            }
        }

        public string sEmail
        {

            get
            {
                return _sEmail;
            }
            set
            {
                _sEmail = value;

                OnPropertyChanged("sEmail");

            }
        }

        public string sTel
        {

            get
            {
                return _sTel;
            }
            set
            {
                _sTel = value;

                OnPropertyChanged("sTel");

            }
        }

        public string sProvince
        {

            get
            {
                return _sProvince;
            }
            set
            {
                _sProvince = value;

                OnPropertyChanged("sProvince");

            }
        }

    }
}